package reflect;

import reflect.annotations.AutoRunClass;
import reflect.annotations.AutoRunMethod;

@AutoRunClass
public class Teacher {
    public String name = "范传奇";
    @AutoRunMethod(3)
    public void sleep(){
        System.out.println("老师"+name+":在睡觉");
    }

    public void teach(){
        System.out.println("老师"+name+":在上课");
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "name='" + name + '\'' +
                '}';
    }
}
